package trlygjj.tanruiliyigenjinjin.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 缴费表
 */
@Getter@Setter
public class Tuition {
    private Long id;
    /**
     * 学员对象
     */
    private ProfessionalStuent professionalstudent;
    /**
     * 基本优惠
     */
    private BigDecimal basicdiscounts;
    /**
     * 其他优惠金额
     */
    private BigDecimal otherdiscounts;
    /**
     * 交付定金
     */
    private BigDecimal deposit;
    /**
     * 原本学费
     */
    private BigDecimal originaltuition;
    /**
     * 支付方式
     */
    private DataDictionaryItem payment;
    /**
     *最后交款日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date deadline;
    /**
     * 交款说明
     */
    private String explains;
    /**
     * 未缴学费
     */
    private BigDecimal unpaidaltuition;
    /**
     * 已缴学费
     */
    private BigDecimal paidupcapital;
    /**
     * 就得班级
     */
    private Grade grade;

}